import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js'

//提供调用学生用户分页查询接口的函数
export const clientPageQueryService = (params)=>{
    return request.get('/admin/client/page',{params: params});
}

//修改个人信息
export const clientInfoUpdateService = (userInfoData)=>{
    return request.put('/admin/client',userInfoData)
}

 //修改个人信息
export const clientDeleteService = (id)=>{
    return request.delete('/admin/client/delete/' + id)
 }

  //获取个人信息
export const clientInfoGetService = (id)=>{
    return request.get('/admin/client/' + id)
}

  //获取个人信息
  export const clientRegisterService = (registerData)=>{
    return request.post('/admin/client/register', registerData)
}

//重置密码
export const clientPasswordResetService = (id)=>{
    return request.put('/admin/client/resetPassword/' + id)
}